package com.g17.virtualpetbackend.repo;

import com.g17.virtualpetbackend.entity.Case;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface CaseRepository extends Neo4jRepository<Case,Long> {

    @Query("MATCH (n:Case)  RETURN n")
    List<Case> getALLCaseStudy();

    @Query("MATCH (n:Case) WHERE n.disease_name=$disease_name RETURN n")
    List<Case> getCaseByDisease_name(String disease_name);
}
